/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.acme.server;

/**
 *
 * @author iiping
 */
@SuppressWarnings("serial")
public class TOTable1 implements java.io.Serializable {
  
  private Integer key;
  private String value;


  public TOTable1(){}

  public TOTable1(Integer key){
    this.key = key;
  }

  public TOTable1(Integer key, String value){
    this.key = key;
    this.value = value;
  }



  /**
   * @return the value
   */
  public String getValue() {
    return value;
  }

  /**
   * @param value the value to set
   */
  public void setValue(String value) {
    this.value = value;
  }

  /**
   * @return the key
   */
  public Integer getKey() {
    return key;
  }

  /**
   * @param key the key to set
   */
  public void setKey(Integer key) {
    this.key = key;
  }

  @Override
  public boolean equals(Object obj) {
    if (obj == null) {
      return false;
    }
    if (getClass() != obj.getClass()) {
      return false;
    }
    final TOTable1 other = (TOTable1) obj;
    if (this.key != other.key && (this.key == null || !this.key.equals(other.key))) {
      return false;
    }
    return true;
  }

  @Override
  public int hashCode() {
    int hash = 7;
    hash = 97 * hash + (this.key != null ? this.key.hashCode() : 0);
    return hash;
  }

  @Override
  public String toString() {
    return "" + key + ":\"" + value+"\"";
  }



}
